
<?php
    $url = new Url();
    $arr_region = LoadConfig::$region;

    //var_dump($arr_region);
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <link rel="icon" type="image/ico" href="<?php echo Yii::app()->params['static_url']?>images/favicon.ico" />
    <meta name="robots" content="noodp,index,follow" />
    <meta name="copyright" content="TTV" />
    <meta name='revisit-after' content='1 days' />  
    <meta name="author" content="xo so" />
    <meta name="generator" content="http://10h.vn"/>
    <meta name="abstract" content="http://10h.vn"/>
    <meta name="geo.region" content="VN-Hà Nội" />
    <meta name="keywords" content="<?php echo $this->keywords;?>"/>
    <meta name="description" content="<?php echo $this->description;?>">

    <title><?php echo $this->title;?></title>
    <link type="text/css" rel="stylesheet" href="<?php echo Yii::app()->params['static_url'];?>css/style.css"></link>
    <script type="text/javascript" src="<?php echo Yii::app()->params['static_url'];?>js/jquery-1.10.2.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->params['static_url'];?>js/jquery-ui-1.10.4.custom.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->params['static_url'];?>js/jquery.countdown.min.js"></script>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->params['static_url'];?>css/css/ui-lightness/jquery-ui-1.10.4.custom.min.css">
    <div id="fb-root"></div>
    <script>
        (function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
            fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));
    </script>
    <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-52533432-1', 'auto');
        ga('send', 'pageview');

    </script>
</head>
<body>
<center>
<div class="bg_menu">
    <div class="logo">
        <a href="<?php echo Yii::app()->params['base_url']; ?>"><img src="<?php echo Yii::app()->params['static_url'];?>images/xo-so-10h-logo.png" width="77" height="34" class="img_logo" /></a>
    </div>
    <div class="logo_kc">&nbsp;</div>
    <div class="menu">
        <ul>
            <li id="trangchu">
                <a href="<?php echo Yii::app()->createUrl('home/index') ?>"><img src="<?php echo Yii::app()->params['static_url'];?>images/xo-so-10h-icon-home.png" class="img_menu" /><br />TRANG CHỦ</a>
            </li>
            <li id="ketqua">
                <a href="<?php echo Yii::app()->createUrl('ketqua/mienbac') ?>"><img src="<?php echo Yii::app()->params['static_url'];?>images/xo-so-10h-icon-KQ.png" class="img_menu" /><br />KẾT QUẢ</a>
            </li>
            <li id="thongke">
                <a href="<?php echo Yii::app()->createUrl('thongke/index') ?>"><img src="<?php echo Yii::app()->params['static_url'];?>images/xo-so-10h-icon-TK.png" class="img_menu" /><br />THỐNG KÊ</a>
            </li>
            <li id="vip">
                <a href="<?php echo Yii::app()->createUrl('vip/index') ?>"><img src="<?php echo Yii::app()->params['static_url'];?>images/xo-so-10h-icon-TIP.png" class="img_menu" /><br />VIP</a>
            </li>
            <li id="quaythu">
                <a href="<?php echo Yii::app()->createUrl('tienich/quaythu') ?>"><img src="<?php echo Yii::app()->params['static_url'];?>images/xo-so-10h-icon-QT.png" class="img_menu" /><br />
                    QUAY THỬ</a>
            </li>
            <li id="chenkq">
                <a href="<?php echo Yii::app()->createUrl('tienich/chenkqxs') ?>"><img src="<?php echo Yii::app()->params['static_url'];?>images/xo-so-10h-icon-CKQ.png" class="img_menu" /><br />CHÈN KQ</a>
            </li>
            <li id="somo">
                <a href="<?php echo Yii::app()->createUrl('tienich/somo',array('page'=>1)) ?>"><img src="<?php echo Yii::app()->params['static_url'];?>images/xo-so-10h-icon-SM.png" class="img_menu"/><br />SỔ MƠ</a>
            </li>
            <li  id="calendar">
                <a href="<?php echo Yii::app()->createUrl('tienich/carlendar') ?>"><img src="<?php echo Yii::app()->params['static_url'];?>images/xo-so-10h-icon-LMT.png" class="img_menu"/><br />LỊCH MỞ <br /> THƯỞNG</a>
            </li>
            <li>
                <a href="<?php echo Yii::app()->createUrl('user/chudehot',array('page'=>1)) ?>" style="width: 93%;"><img src="<?php echo Yii::app()->params['static_url'];?>images/xo-so-10h-icon-CDH.png" class="img_menu" /><br />CHỦ ĐỀ HOT</a>
            </li>
        </ul>
    </div>
    <div class="both"></div>
</div>
<div class="bg_Note">

    <div class="Note" id="boxnote">
        <?php
             $this->renderPartial('boxnote');
         ?>
    </div>

    <?php if(empty($_SESSION['username'])==false){?>
        <div class="User" style="float: right;">
            <img src="<?php echo $_SESSION['avatar']?>" width="42px" height="42px" style="margin-top:  0px; float: left;" />
            Hi <strong><a class="User_menu" href="<?php echo Yii::app()->createUrl('user/changeinfo')?>"><?php echo $_SESSION['username'];?></a></strong>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <strong><a class="User_menu" href="<?php echo Yii::app()->createUrl('user/logout')?>">Logout</a></strong>
        </div>
        <?php }else{?>
        <div class="User" style="float: right;">
            &nbsp;&nbsp;&nbsp;&nbsp;
            <strong><a class="User_menu" href="<?php echo Yii::app()->createUrl('user/index')?>">Đăng nhập</a></strong>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <strong><a class="User_menu" href="<?php echo Yii::app()->createUrl('user/register')?>">Đăng ký</a></strong>
            &nbsp;&nbsp;&nbsp;&nbsp;
        </div>
        <?php }?>

    <div class="both"></div>
    </div>
    <div class="Main">